#[cfg(test)]
mod paren_match_check {
    use stack::paren_check;
    #[test]
    fn paren_check_test_1() {
        let sa = "()(())";
        let res1 = paren_check(sa);
        assert_eq!(res1, true);
    }
    #[test]
    fn paren_check_test_2() {
        let sb = "()((()";
        let res2 = paren_check(sb);
        assert_eq!(res2, false);
    }
}
#[cfg(test)]
mod paren_match_mul_check {
    use stack::{paren_match_muls, paren_match_muls_ignore};
    #[test]
    fn paren_mul_check_test_1() {
        let sa = "()[()]";
        let res1 = paren_match_muls(sa);
        assert_eq!(res1, true);
    }
    #[test]
    fn paren_mul_check_test_2() {
        let sb = "()[){)";
        let res2 = paren_match_muls(sb);
        assert_eq!(res2, false);
    }
    #[test]
    fn paren_mul_check_test_3() {
        let sa = "(2+3){func}[abc]";
        let res1 = paren_match_muls_ignore(sa);
        assert_eq!(res1, true);
    }

    #[test]
    fn paren_mul_check_test_4() {
        let sa = "(2+3)*(3-1";
        let res1 = paren_match_muls_ignore(sa);
        assert_eq!(res1, false);
    }
}
